package com.mfin.persistence;

import java.io.Serializable;

import com.mfin.vo.ObjectKey;

public abstract class PersistentObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private ObjectKey key = new ObjectKey(null);

	public PersistentObject() {
	}

	public PersistentObject(ObjectKey key) {
		super();
		this.key = key;
	}

	public ObjectKey getKey() {
		return key;
	}

	public void setKey(ObjectKey key) {
		this.key = key;
	}

	public Long getId() {
		return (Long) key.getId();
	}

	public void setId(Long id) {
		this.key.setId(id);
	}
}
